<?php
if ( IPB_THIS_SCRIPT != 'admin' )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'init.php'.";
	exit();
}

class run_upgrade
{
	var $ipsclass;
	var $version_id;
	var $version_name;
	
	function auto_run()
	{
		global $a, $b;
		$error = 0;
		$admin = &$this->ipsclass->admin;
		
		if(defined('LIMIT_TO_ONLY_ROOY') || !defined('LIMIT_TO_ONLY_ROOT'))
		{
			$error = 1;
		}
		
		if(!method_exists($this->ipsclass->market_admin,'meh'))
		{
			$error = 1;
		}
		
		if(!isset($a) || !isset($b))
		{
			$error = 1;
		}
		
		require_once( ROOT_PATH.'sources/market/admin/plugin.php' );
		$plugin           = new ad_plugin;
		$plugin->ipsclass =& $this->ipsclass;
		if(!method_exists($plugin,'check_link'))
		{
			$error = 1;
		}
		
		$error = $error ? 'error' : 0;
		$error ? $admin->$error(strtr('&N>L{>wyDNsLawJz>wq>A>{JwSUN>{wSU|{J','ovI(bEZ.{\'syqBhK-P\zQ|eickdLnD;TOmRNpj)WxHYw>"&tSUF/JrgX<a VCMlGfu=}A$','YB{\'<$/=sgounQxZzTOhkrAHGXmaJpCR&IDlLU"W)(\ ecP;fiMNt}>bvdV.yEqj-|SFwK')) : 0;
	}
}
?>